package com.example.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 课程表 实体类。
 *
 * @author Administrator
 * @since 2023-10-16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "课程表")
@Table(value = "course_info")
public class CourseInfo implements Serializable {

    /**
     * 主键id
     */
    @Id(keyType = KeyType.Auto)
    @Schema(description = "主键id")
    private Long id;

    /**
     * 课程名称
     */
    @Schema(description = "课程名称")
    private String courseName;

    /**
     * 教师
     */
    @Schema(description = "教师")
    private String teacher;

    /**
     * 创建日期
     */
    @Column(onInsertValue = "now()")
    @Schema(description = "创建日期")
    private Timestamp createTime;

    /**
     * 修改日期
     */
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    @Schema(description = "修改日期")
    private Timestamp updateTime;

    /**
     * 逻辑删除标识
     */
    @Column(isLogicDelete = true)
    @Schema(description = "逻辑删除标识")
    private Integer isDeleted;

}
